<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./cssReset.css">
    <style>
        /* .roll {
            width: 1000px;
            height: 300px;
            border: 1px solid black;
            background-color: black;
        } */
        
        .roll {
            /* 将ul多出来的部分不展示出来 */
            overflow: hidden;
        }
        
        .roll ul {
            width: 200%;
            display: flex;
            flex-flow: row nowrap;
            animation: move 10s linear infinite;
        }
        
        .roll ul:hover {
            cursor: pointer;
            /* 鼠标移入ul后动画暂停 */
            animation-play-state: paused;
        }
        
        .roll ul li {
            width: 12.5%;
            text-align: center;
        }
        
        .roll ul li img {
            display: block;
            width: 70%;
            margin: 30px auto;
        }
        /* 轮播图针对的是ul里面的所有li */
        
        @keyframes move {
            0% {
                transform: translateX(0);
            }
            /* 向左移一组图(4张)的距离 */
            100% {
                transform: translateX(-1000px);
            }
        }
    </style>
</head>

<body>
    <div class="part">
        <div class="center">
            <div class="roll">
                <ul>
                    <li><img src="./roll/img1.png" alt="">
                        <p>华硕电脑</p>
                    </li>
                    <li><img src="./roll/img2.png" alt="">
                        <p>华硕电脑</p>
                    </li>
                    <li><img src="./roll/img3.png" alt="">
                        <p>华硕电脑</p>
                    </li>
                    <li><img src="./roll/img4.png" alt="">
                        <p>华硕电脑</p>
                        <li><img src="./roll/img1.png" alt="">
                            <p>华硕电脑</p>
                        </li>
                        <li><img src="./roll/img2.png" alt="">
                            <p>华硕电脑</p>
                        </li>
                        <li><img src="./roll/img3.png" alt="">
                            <p>华硕电脑</p>
                        </li>
                        <li><img src="./roll/img4.png" alt="">
                            <p>华硕电脑</p>
                        </li>
                </ul>
            </div>
        </div>
    </div>
</body>

</html>